Make sure that we get the state of the modal window properly, and send out the
corresponding notification signals.
This will ensure that we do not try to activate windows that should have become
inactivated due to it opening modal windows and render the program unresponsive
because we are not activating the correct window that is due to receive user
input.
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_MODAL:
- _gdk_push_modal_window (surface);
+ GDK_SURFACE (surface)->modal_hint = g_value_get_boolean (value);
+
+ if (GDK_SURFACE (surface)->modal_hint)
+ _gdk_push_modal_window (surface);
+
+ g_object_notify_by_pspec (G_OBJECT (surface), pspec);
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_ICON_LIST:
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_MODAL:
+ g_value_set_boolean (value, GDK_SURFACE (surface)->modal_hint);
break;
case LAST_PROP + GDK_TOPLEVEL_PROP_ICON_LIST: